// 默认控件ID数组
var container_sub_ids = [
	"btn_top_left",
	"btn_top_right",
	"btn_circle_left",
	"btn_circle_right",
//	"container_circle",
	"container_circle_item_left",
	"container_circle_item_center",
	"container_circle_item_right"
];

// 调整用户列表大小
function resizeContainerMemberList(){
	var obj = document.getElementById("container_memberlist");
	if (obj != null){
		obj.style.height = document.documentElement.scrollHeight + "px";
	}
}

// 添加默认点击事件
function initContainerDefaultClickEvent(){
	for(var i = 0; i < container_sub_ids.length; i++){
		var obj = document.getElementById(container_sub_ids[i]);
		if (obj != null){
			obj.addEventListener("click", containerDefaultClickEvent, false);
		}
	}
}
//获取当前时间字符串
function getNowTime(){
	var date = new Date();
	var year = date.getFullYear();
	var month = date.getMonth() + 1;
	var day = date.getDate();
	var hour = date.getHours(); 
	var minute = date.getMinutes(); 
	var second = date.getSeconds(); 
	var timeStr=year
		+ "-" + (month<10 ? "0" + month : month)
		+ "-" + (day<10 ? "0"+ day : day)
		+ "T" + (hour<10 ? "0"+ hour : hour)
		+ ":" + (minute<10 ? "0" + minute : minute)
		+ ":" + (second<10 ? "0" +second : second);
	return timeStr;
}
function getNowTimeYND(){
	var date = new Date();
	var year = date.getFullYear();
	var month = date.getMonth() + 1;
	var day = date.getDate(); 
	var timeStr=year
		+ "-" + (month<10 ? "0" + month : month)
		+ "-" + (day<10 ? "0"+ day : day);
	return timeStr;
}


//获取XmlHttpRequest对象
	function createXmlHttpRequest(){
    if(window.ActiveXObject){
        return new ActiveXObject("Microsoft.XMLHTTP");
    }else if(window.XMLHttpRequest){
        return new XMLHttpRequest();
    }
}

//loader显示
function showAjaxLoader(){
	var loader=document.getElementById("ajaxLoader");
	loader.style.display = "block";
}

function hideAjaxLoader(){
	var loader=document.getElementById("ajaxLoader");
	loader.style.display = "none";
}
